package com.intelligent.bot.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.intelligent.bot.model.base.BaseEntity;
import lombok.*;

import java.io.Serializable;


@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 326308725675949330L;



    /**
     * 昵称
     */
    private String nickName;


    /**
     * 手机号
     */
    private String phone;


    /**
     * 类型 0 小程序用户 1管理员 2门店管理员
     */
    private Integer type;

    /**
     * 密码
     */
    private String password;

    /**
     * 备注
     */
    private Long teamId;

    /**
     * 分组名
     */
    @TableField(exist = false)
    private String teamName;

}
